package com.ruoyi.resume.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resume.mapper.CvWorkExperienceMapper;
import com.ruoyi.resume.domain.CvWorkExperience;
import com.ruoyi.resume.service.ICvWorkExperienceService;

/**
 * 工作经历Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
@Service
public class CvWorkExperienceServiceImpl implements ICvWorkExperienceService 
{
    @Autowired
    private CvWorkExperienceMapper cvWorkExperienceMapper;

    /**
     * 查询工作经历
     * 
     * @param id 工作经历主键
     * @return 工作经历
     */
    @Override
    public CvWorkExperience selectCvWorkExperienceById(Long id)
    {
        return cvWorkExperienceMapper.selectCvWorkExperienceById(id);
    }

    /**
     * 查询工作经历列表
     * 
     * @param cvWorkExperience 工作经历
     * @return 工作经历
     */
    @Override
    public List<CvWorkExperience> selectCvWorkExperienceList(CvWorkExperience cvWorkExperience)
    {
        return cvWorkExperienceMapper.selectCvWorkExperienceList(cvWorkExperience);
    }

    /**
     * 新增工作经历
     * 
     * @param cvWorkExperience 工作经历
     * @return 结果
     */
    @Override
    public int insertCvWorkExperience(CvWorkExperience cvWorkExperience)
    {
        return cvWorkExperienceMapper.insertCvWorkExperience(cvWorkExperience);
    }

    /**
     * 修改工作经历
     * 
     * @param cvWorkExperience 工作经历
     * @return 结果
     */
    @Override
    public int updateCvWorkExperience(CvWorkExperience cvWorkExperience)
    {
        return cvWorkExperienceMapper.updateCvWorkExperience(cvWorkExperience);
    }

    /**
     * 批量删除工作经历
     * 
     * @param ids 需要删除的工作经历主键
     * @return 结果
     */
    @Override
    public int deleteCvWorkExperienceByIds(Long[] ids)
    {
        return cvWorkExperienceMapper.deleteCvWorkExperienceByIds(ids);
    }

    /**
     * 删除工作经历信息
     * 
     * @param id 工作经历主键
     * @return 结果
     */
    @Override
    public int deleteCvWorkExperienceById(Long id)
    {
        return cvWorkExperienceMapper.deleteCvWorkExperienceById(id);
    }
}
